import request from '@/utils/request'
const preUrl = '/index'
export default {
    getTitles() {
        return request({
            url: preUrl + `/titles`,
            method: 'get',
        })
    },
    addTitle(id){
        return request({
            url: preUrl + `/addTitle/${id}`,
            method: 'get',
        })
    },
    deleteTitle(id){
        return request({
            url: preUrl + `/deleteTitle/${id}`,
            method: 'delete',
        })
    },
    getShops(){
        return request({
            url: preUrl + `/getShops`,
            method: 'get',
        })
    },
    deleteShop(id){
        return request({
            url: preUrl + `/deleteShop/${id}`,
            method: 'delete',
        })
    },
    addShop(id){
        return request({
            url: preUrl + `/addShop/${id}`,
            method: 'get',
        })
    }
}
